// 窗口配置类型
export interface WindowConfig {
  opacity: number;
  alwaysOnTop: boolean;
  width: number;
  height: number;
  x?: number;
  y?: number;
}

// 快捷键配置类型
export interface ShortcutConfig {
  toggleVisibility: string;
  increaseOpacity: string;
  decreaseOpacity: string;
  toggleDisguise: string;
}

// 应用设置类型
export interface AppSettings {
  autoHide: boolean;
  startupPosition: { x: number; y: number };
  startupSize: { width: number; height: number };
  enableGlobalShortcuts: boolean;
  minimizeToTray: boolean;
  autoStart: boolean;
  theme: 'dark' | 'light';
}

// 窗口信息类型
export interface WindowInfo {
  position: {
    x: number;
    y: number;
  };
  size: {
    width: number;
    height: number;
  };
  isVisible: boolean;
}

// 应用模式类型
export type AppMode = 'reading' | 'settings' | 'disguise';

// Tauri API 响应类型
export interface TauriResponse<T = any> {
  success: boolean;
  data?: T;
  error?: string;
}